<template>
	<view>
		<view class="index_content" v-if="data.isshow">
			<image src="/static/k6.png" mode=""></image>
			<view class="tt1">在你的城市，做一位掌灯人！</view>
			<view class="btn" @click="$pageGo(`/mypage/more/createFenshe`)">建立分社</view>
		</view>
		<view class="index_content" v-else>
			<view class="" v-if="data.verifyStatus == '待审核'">
				<image src="/static/k6.png" mode=""></image>
				<view class="tt1">正在审核中！</view>
			</view>
			<view class="" v-else>
				<image src="/static/k7.png" mode=""></image>
				<view class="tt2">已驳回</view>
				<view class="tt3">驳回原因：{{ data.verifyDesc }}</view>
				<view class="btn" @click="$pageGo(`/mypage/more/createFenshe`)">重新申请</view>
			</view>
		</view>
	</view>
</template>
<script setup>
import { onLoad, onShow, onReachBottom, onPageScroll } from '@dcloudio/uni-app';
import { reactive, ref } from 'vue';
import { toast } from '@/utils/common';
import { getApplyInfo } from '@/api/about.js';
const data = reactive({
	isshow:false,
	verifyStatus:'',
	verifyDesc:''
})
onShow((e) => {
	getApplyInfo().then((res) => {
		// 没有申请过
		if (res.data == null) {
			data.isshow = true;
		} else {
			data.verifyStatus = res.data.verifyStatus;
			data.verifyDesc = res.data.verifyDesc
			data.isshow = false;
		}
	});
});
const goindex = () => {
	uni.navigateTo({
		url: '/mypage/more/createFenshe'
	});
};
</script>

<style lang="scss">
.index_content {
	width: 750rpx;
	margin: 180rpx auto;
	text-align: center;
	image {
		width: 270rpx;
		height: 270rpx;
	}
	.tt1 {
		font-family: PingFang SC, PingFang SC;
		font-weight: 500;
		font-size: 28rpx;
		color: #75613e;
		margin-top: 20rpx;
	}
	.tt2 {
		font-family: PingFang SC, PingFang SC;
		font-weight: 500;
		font-size: 28rpx;
		color: #1b1b1b;
	}
	.tt3 {
		font-family: PingFang SC, PingFang SC;
		font-weight: 500;
		font-size: 28rpx;
		color: #8f8f8b;
		margin-top: 30rpx;
	}
	.btn {
		width: 330rpx;
		height: 88rpx;
		background: #e3d0ad;
		border-radius: 60rpx;
		font-family: PingFang SC, PingFang SC;
		font-weight: 500;
		font-size: 32rpx;
		color: #75613e;
		text-align: center;
		line-height: 88rpx;
		margin: 100rpx auto;
	}
}
</style>
